package com.andyage.admin.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.andyage.admin.service.IAdfodderService;

@Controller
@RequestMapping("/upload")
public class AdUploadAction{
	@Resource
	private IAdfodderService iadfodderService;
	    @RequestMapping(value="/adupload",method=RequestMethod.POST)
	    @ResponseBody
	    public void upload(HttpServletRequest request, HttpServletResponse response) {
//	        request = new MulpartRequestWrapper(request);
	            try {
					iadfodderService.insertAdfodder(request, response);
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
	    }
}  

